//THANKS TO ANMABAGIMA (PSPKING)

#ifndef CLSIMPLETIMER_H_
#define CLSIMPLETIMER_H_

extern "C"{
#include <pspkernel.h>
#include <pspdebug.h>
#include <psprtc.h>
}

class Timebase {
public:
    Timebase();
    void reset();
    float getDeltaSeconds();
    float getTime();
    bool isReset();

protected:
    u64 lastTick, firstTick;
    float tickFrequency;
    bool reseted;
};

#endif